<?php
session_cache_limiter('private');
session_cache_expire(60);
session_start();

$controller = filter_input(INPUT_GET, 'controller');
$action     = filter_input(INPUT_GET, 'action');
$id         = filter_input(INPUT_GET, 'id');
if($controller == 'paginas'){
    if($action == "newpage" || $action == 'edit'){
        if(!isset($_SESSION['helper_paginas'])){
            $_SESSION['helper_paginas']=URLDOMINIOADMIN.$controller."/".$action."/".$id;
        }        
    }else{
        unset($_SESSION['helper_paginas']);
    }
}

